<style type="text/css">
	pre.prettyprint {
	border: 0;
	border-left: 3px solid #6CE26C;
	margin-left: 2em;
	padding: 0.5em;
	font-size: 110%;
	display: block;
	font-family: "Consolas", "Monaco", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
	margin: 1em 0px;
	white-space: pre-wrap;
	background:#f5f5f5;
	/* border-bottom:1px solid #e5e5e5; */
}
</style>
<div class="side">
<div class="wgt" id="shop_owner">
<a onclick="showWindow('sendpm', this.href);" href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_{$bd['uid']}&touid={$bd['uid']}" class="ownerpic">
<img width="60" height="60" src="{eval echo avatar($bd['uid'],'middle',true);}" alt="avatar">
</a>
<p>
<!--{eval $user=getuserbyuid($bd['uid']);}-->
<span>{lang aljbd:s150}</span><a onclick="showWindow('sendpm', this.href);" href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_{$bd['uid']}&touid={$bd['uid']}" title="{$user['username']}">{eval echo cutstr($user['username'],20,' ');}</a>
</p>
<p>
<span>{lang aljbd:s151}</span>{eval echo gmdate('{lang aljbd:s152}',$bd['dateline']+3600*8)}</p>
<p ><a id="followmod" style="background: url('source/plugin/aljbd//images/commentbt.jpg')!important;border: 1px solid #78ae42;color: #ffffff;cursor: pointer;height: 22px;line-height: 22px;text-align: center;margin-right:5px;padding:2px 5px 2px 5px;font-size:12px;" onclick="showWindow(this.id, this.href, 'get', 0);" href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid={$bd['uid']}">{lang aljbd:side_1}</a><a style="background: url('source/plugin/aljbd/images/claimbt.jpg')!important;border: 1px solid #F97028;color:#fff;padding:2px 5px 2px 5px;font-size:12px;" onclick="showWindow('sendpm', this.href);" href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_{$bd['uid']}&touid={$bd['uid']}">{lang aljbd:side_2}</a></p>
</div>
<div class="wgt" id="shop_base_info">
<div >
{if $_GET['act']=='view'}<div style="overflow: hidden;"><h2 style=" color: #333;float: left;font-size: 14px;"><span aria-hidden="true" class="icon-mobile2" style="padding-right:5px;font-weight:700;color:#000;"></span>{lang aljbd:side_3}</h2></div>
<div id="qrcode">

						</div>
<style type="text/css">
	#qrcode img{width:80%;margin: 5% auto;}
</style>
<script type="text/javascript" src="source/plugin/$pluginid/js/qrcode.min.js"></script>
<script type="text/javascript">
new QRCode(document.getElementById("qrcode"), "{$_G['siteurl']}plugin.php?id=$pluginid&&act=view&bid=$bid");
</script>
<p style="text-align:center;">{lang aljbd:side_4}</p>{else}<img width="205"  alt="" src="{if file_exists($bd['logo'])}$bd['logo']{else}$noimg{/if}">{/if}
</div>
<h2 class="viewtitle">
<a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_shop_{$bd['id']}.html{else}plugin.php?id=aljbd&act=view&bid={$bd['id']}{/if}"><!--{eval echo cutstr($bd['name'],18,'');}--></a>{if $sign}<img title="{lang aljbd:attestation_9}" src="source/plugin/aljbd/images/vip.gif">{/if}</h2>
{if $avg}
<p class="star_area">
<img alt="" src="source/plugin/aljbd/images/{$avg}_big.png">
<a class="message_num" href="plugin.php?id=aljbd&act=view&bid={$bd['id']}#messages">{$commentcount}{lang aljbd:s153}</a>
</p>
{if $_GET['act'] != 'view'}
<div class="score">
<ul>
{if $bd['businesstype']}
{if count($bustype)==1&&$businesstypearr[$bustype[0]]}
<li><span>$businesstypearr[$bustype[0]]</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][k])}0{else}$khf[0][k]{/if}.gif"></li>
{/if}
{if count($bustype)==2&&$businesstypearr[$bustype[1]]}
<li><span>$businesstypearr[$bustype[0]]</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][k])}0{else}$khf[0][k]{/if}.gif"></li>
<li><span>$businesstypearr[$bustype[1]]</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][h])}0{else}$khf[0][h]{/if}.gif"></li>
{/if}
{if count($bustype)==3&&$businesstypearr[$bustype[2]]}
<li><span>$businesstypearr[$bustype[0]]</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][k])}0{else}$khf[0][k]{/if}.gif"></li>
<li><span>$businesstypearr[$bustype[1]]</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][h])}0{else}$khf[0][h]{/if}.gif"></li>
<li><span>$businesstypearr[$bustype[2]]</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][f])}0{else}$khf[0][f]{/if}.gif"></li>
{/if}
{else}
<li><span>{lang aljbd:s154}</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][h])}0{else}$khf[0][h]{/if}.gif"></li>
<li><span>{lang aljbd:s155}</span><img alt="" src="source/plugin/aljbd/images/{if empty($khf[0][f])}0{else}$khf[0][f]{/if}.gif"></li>
{/if}
</ul>
</div>
{/if}
{/if}

<p class="leavecomment cl" style="margin-top:3px;">
<a href="plugin.php?id=aljbd&act=view&bid={$bd['id']}#messages" class="btg">{lang aljbd:s156}</a>
{if $bd['wurl']}<a href="{$bd['wurl']}" style="float:right;background: url('source/plugin/aljbd/images/claimbt.jpg') repeat-x scroll 0 0 rgba(0, 0, 0, 0);border: 1px solid #F97028;" target="_blank" rel="nofollow">{lang aljbd:wurl_3}</a>{/if}
</p>
<div class="devide"></div>
{if $_GET['act'] != 'view'}
<p class="address cl">
<span><span style="padding-right:5px;" class="icon-info" aria-hidden="true"></span>{lang aljbd:s157}</span><b>$bd['addr']</b>
</p>

<p class="tel">
<span><span style="padding-right:5px;" class="icon-info" aria-hidden="true"></span>{lang aljbd:s158}</span><b>$bd['tel']</b>
</p>
<p class="category">
<span><span style="padding-right:5px;" class="icon-info" aria-hidden="true"></span>{lang aljbd:s159}</span>{if $typelist[$bd['subtype']]['subject']}<b>{$typelist[$bd['subtype']]['subject']}</b>{else}<b>$typelist[$bd['type']]['subject']</b>{/if} </p>
{/if}
{if $bd['qq']}
<p style="margin-top:5px;">{$qq}</p>
{/if}
<div class="view">
{lang aljbd:s162}<b>$bd['view']</b>{lang aljbd:s163}
</div>
</div>
{if file_exists('source/plugin/aljbd/template/com/visitor.htm')}
{template aljbd:com/visitor}
{/if}
{if file_exists('source/plugin/aljbd/com/notice.php') && !$settings['close_notice']['value']}
<div class="wgt" id="notice_list">
<div class=" cl">
<h2 class="z" style="color:#333;float:left;font-size:14px;"><span aria-hidden="true" class="icon-news" style="padding-right:5px;font-weight:700;color:#000;"></span>{lang aljbd:view_header_1}</h2>
<a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_notice_{$bd['id']}.html{else}plugin.php?id=aljbd&act=notice&bid={$bd['id']}{/if}" class="more y">{lang aljbd:s267}</a>
</div>
<ul>
{if $notice}
{loop $notice $n}
<li><a href="{if $_G['cache']['plugin'][$pluginid]['isrewrite']}brand_notice_{$n['bid']}_{$n[id]}.html{else}plugin.php?id=aljbd&act=noticeview&bid={$n['bid']}&nid=$n['id']{/if}">{eval echo cutstr($n['subject'],40,' ');}</a></li>
{/loop}
{else}
<li>{lang aljbd:side}</li>
{/if}
</ul>
</div>
{/if}
{if file_exists('source/plugin/aljbd/com/mark.php') && !$settings['close_map']['value']}
<div id="map" class="wgt">
<div style="width: 205px; height: 205px;" id="map_canvas"></div>
<div class="cl">
<a class="btn_nomal z" href="plugin.php?id=aljbd&act=map&bid={$_GET['bid']}" target="_blank">{lang aljbd:s167}</a><a class="btn_nomal y" href="plugin.php?id=aljbd&act=map&bid={$_GET['bid']}&op=change" target="_blank">{lang aljbd:s168}</a></div>
</div>
{/if}
</div>
</div>
{if $settings['templatepx']['value']}
	{template aljbd:footercss}
{/if}
</div>

 <script language="javascript">
     jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();
jq(function(){
jQuery.fn.extend({
showWordCount: function() {
var _max = 140;
var _length = jq(this).val().length;
if(_length > _max) {
jq(this).val(jq(this).val().substring(0, _max));
}
jq(this).closest('form').find('.action .y i').text(_max-_length);
}
});
if(jq.browser.msie){
jq('textarea').bind('propertychange', function() {
jq(this).showWordCount();
});
}else{
jq('textarea').bind('keyup mouseup', function() {
jq(this).showWordCount();
});
}
jq('textarea').each(function(){
if(jq(this).val().length>0)
jq(this).showWordCount();
})
});
</script>
{if $gookey}
<script async defer
		src="https://maps.googleapis.com/maps/api/js?key={$gookey}&signed_in=true" reload="1"></script>
<script type="text/javascript" charset="utf-8">
    var marker;
    var map;
    var infowindow;
    {if $bd['x']!=0 && $bd['y']!=0}
    var y = {$bd['x']};
    var x = {$bd['y']};
    {else}
    var x = {$config['x']};
    var y = {$config['y']};
    {/if}
    console.log(x+'==='+y);
    var contentString = "<div style=\"text-align:center;\">{if $bd['x']!=0&&$bd['y']!=0}<b>{$bd['name']}</b>{else}{lang aljbd:s68}{/if}</div>";
    map = new google.maps.Map(document.getElementById('map_canvas'), {
        zoom: 13,
        center: {lat: x, lng: y}
    });
    var myLatlng = new google.maps.LatLng(x,y);
    marker = new google.maps.Marker({
        map: map,
        position: myLatlng
    });

    infowindow = new google.maps.InfoWindow({
        content: contentString,
        position: MouseEvent.latLng,
    });
    infowindow.open(marker.get('map'), marker);
</script>
{else}
<script src="https://api.map.baidu.com/api?v=2.0&ak=Mz8y6VOGZv8AbIfQas83nf1B&s=1" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
function initialize() {

var point;
var mapapimark = "{if $bd['x']>0&&$bd['y']>0}({$bd['x']}, {$bd['y']}){/if}";
var local = "";

if(mapapimark) {
var mapapimarkaction = true;
point = new BMap.Point({$bd['x']}, {$bd['y']});
} else {
if(!local) {
var defaultmapaction = true;
point = new BMap.Point({$_G['cache']['plugin'][$pluginid]['x']},{$_G['cache']['plugin'][$pluginid]['y']});
} else {
var geoaction = true;
}
}

var map = new BMap.Map("map_canvas");
map.enableScrollWheelZoom();
map.centerAndZoom(point, 14);

if(mapapimarkaction) {
var marker = new BMap.Marker(point, {title: "{$bd['name']}"});
map.addOverlay(marker);
} else if(geoaction) {
var Geocoder = new BMap.Geocoder();
if(Geocoder) {
Geocoder.getPoint(local, function(point){
if (point) {
map.centerAndZoom(point, 14);
//map.addOverlay(new BMap.Marker(point));
} else {
alert("{lang aljbd:s169}");
}
}, "");
}
}
}
initialize();
</script>
{/if}
{template common/footer}
